package com.ys.entity.finance;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_ExpenseSettlement", catalog="Id")
public class TcwExpenseSettlement extends BaseEntity<TcwExpenseSettlement> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="Vid", nameJava="vid", typeDataBase="varchar")
	private String vid;
	@YsField(nameDataBase="Vyhzhmc", nameJava="vyhzhmc", typeDataBase="varchar")
	private String vyhzhmc;
	@YsField(nameDataBase="Vkhh", nameJava="vkhh", typeDataBase="varchar")
	private String vkhh;
	@YsField(nameDataBase="Vyhzh", nameJava="vyhzh", typeDataBase="varchar")
	private String vyhzh;
	@YsField(nameDataBase="TotalAmount", nameJava="totalAmount", typeDataBase="varchar")
	private String totalAmount;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="WriteTime", nameJava="writeTime", typeDataBase="datetime")
	private Date writeTime;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwExpenseSettlement setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcwExpenseSettlement setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcwExpenseSettlement setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TcwExpenseSettlement setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getVid() {
		return vid;
	}
	public TcwExpenseSettlement setVid(String vid) {
		this.vid = vid;
		return this;
	}
	public String getVyhzhmc() {
		return vyhzhmc;
	}
	public TcwExpenseSettlement setVyhzhmc(String vyhzhmc) {
		this.vyhzhmc = vyhzhmc;
		return this;
	}
	public String getVkhh() {
		return vkhh;
	}
	public TcwExpenseSettlement setVkhh(String vkhh) {
		this.vkhh = vkhh;
		return this;
	}
	public String getVyhzh() {
		return vyhzh;
	}
	public TcwExpenseSettlement setVyhzh(String vyhzh) {
		this.vyhzh = vyhzh;
		return this;
	}
	public String getTotalAmount() {
		return totalAmount;
	}
	public TcwExpenseSettlement setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
		return this;
	}
	public Date getWriteTime() {
		return writeTime;
	}
	public TcwExpenseSettlement setWriteTime(Date writeTime) {
		this.writeTime = writeTime;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwExpenseSettlement setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwExpenseSettlement setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwExpenseSettlement setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwExpenseSettlement setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwExpenseSettlement tcwExpenseSettlement(
		String bid,
		Integer effectStock,
		Long createChangeId,
		String vid,
		String vyhzhmc,
		String vkhh,
		String vyhzh,
		String totalAmount,
		Date writeTime,
		String remark,
		Integer status
			) {
		TcwExpenseSettlement entity = new TcwExpenseSettlement();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setCreateChangeId(createChangeId);
		entity.setVid(vid);
		entity.setVyhzhmc(vyhzhmc);
		entity.setVkhh(vkhh);
		entity.setVyhzh(vyhzh);
		entity.setTotalAmount(totalAmount);
		entity.setWriteTime(writeTime);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}